import {
  _decorator,
  Component,
  Node,
  UITransform,
  Sprite,
  Animation,
  SpriteFrame,
  AnimationClip,
  animation,
  utils,
} from 'cc'
const { ccclass, property } = _decorator



// 实体类型
import { EntityManager } from '../../Base/EntityManager'
import { IEntity } from '../../Levels'
// 状态机
import { SmokeStateMchine } from './SmokeStateMchine'


@ccclass('SmokeManager')
export class SmokeManager extends EntityManager {
  async init(params: IEntity) {
    // 初始化状态机
    this.fsm = this.addComponent(SmokeStateMchine)
    await this.fsm.init()

    // 传入默认值
    super.init(params)
  }

}
